import request from '@/utils/request'

export function addRecord(data) {
  return request({
    url: '/juanbusiness/indent/add',
    method: 'post',
    data
  })
}

export function findRecord(page, size,indentStatus,sysUserId) {
  return request({
    url: '/juanbusiness/indent/findPage',
    method: 'get',
    params: { page: page, size: size,indentStatus: indentStatus, sysUserId: sysUserId}
  })
}

export function detailRecord(id) {
  return request({
    url: '/juanbusiness/indent/get',
    method: 'get',
    params: {id: id}
  })
}

export function delRecord(id) {
  return request({
    url: '/juanbusiness/indent/del',
    method: 'delete',
    params: {id: id}
  })
}

export function editLogisticInfoRecord(id,shipperCode,logisticCode) {
  return request({
    url: '/juanbusiness/indent/editLogisticInfo',
    method: 'put',
    params: {id: id,shipperCode: shipperCode,logisticCode: logisticCode}
  })
}

export function editIndentStatusRecord(id,indentStatus) {
  return request({
    url: '/juanbusiness/indent/editIndentStatus',
    method: 'put',
    params: {id: id, indentStatus:indentStatus}
  })
}
